package com.orange.core.pojo.entity.permission;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.orange.core.pojo.entity.IIntIdModel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.lang.NonNull;

@NoArgsConstructor
@RequiredArgsConstructor
@Data
@Accessors(chain = true)
public class AdminRole implements IIntIdModel<AdminRole> {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @NonNull
    private Integer adminId;

    @NonNull
    private Integer roleId;
}
